Method and apparatus for interface failure survivability using error correction

ABSTRACT

A method an apparatus for interface failure survivability using error correction provides operation of an interface when a number of bits of the interface less than or equal to available error correction depth are present. Initialization tests are used to determine whether the interface errors due to failed interconnects or circuits can be corrected, or whether the interface must be disabled. Subsequent alignment at initialization or during operation idle periods may be disabled for any failed bits. The failed bit indications are determined and maintained in hardware, and used to bypass subsequent calibrations that could otherwise corrupt the interface. A fault indication specifying total failure may be generated and used to shut down the interface and/or connected subsystem in response to an uncorrectable condition and request immediate repair. A second fault indication specifying correctable failure may be generated and used to indicate a need for eventual repair.

BACKGROUND OF THE INVENTION

[0001] 1. Technical Field

[0002] The present invention relates generally to electronic interface operation, and more particularly, to interfaces that are tested for fault detection and calibration prior to and/or during operation.

[0003] 2. Description of the Related Art

[0004] Interfaces between present-day integrated circuits have increased in operating frequency and width. In particular, multiprocessing systems, where multiple processors are arranged in an array or a cube, both wide and fast connections are provided between many processing units. Data width directly affects the speed of data transmission between systems components, as does the data rate, which is limited by the maximum frequency that can be supported by an interface.

[0005] Present-day systems interconnect designs use transmission line techniques to improve signal transmission/reception. Low voltage and current signaling levels are desirable to reduce driver size, power consumption/dissipation and electromagnetic interference (EMI). The interface schemes used for the above-mentioned interconnect designs are incorporating an increasing amount of intelligence and flexibility, along with incorporating the consequent circuit complexity to support these features. In particular, interfaces such as those disclosed in U.S. Patent Application “ELASTIC INTERFACE APPARATUS AND METHOD THEREFOR”, publication No. US2002/0013875A1, incorporated herein by reference, discloses an exemplary interface that can synchronize asynchronously transmitted data streams between two interconnected subsystems. An interface alignment procedure (IAP) is performed at initialization and optionally dynamically during operation in order to maintain optimum synchronization, which reduces the bit error rate (BER) of the interface.

[0006] Interfaces such as the EI described above, especially when incorporated within multiprocessing systems where errors from a single unit can corrupt operation and data within the entire system, employ sophisticated initialization test procedures that, in addition to the IAP mentioned above, are used to verify proper DC (static) and AC (dynamic) operation of the interface prior to and optionally during operation of the system. Failure of the DC and AC tests due to an interface fault is typically used to disable the interface and generate an interface failure indication. Recalibration procedures and initial calibration such as IAP are typically not performed on interfaces that do not pass initial wire test, as the interface is not used subsequent to detecting a failure. A recalibration procedure could also enter a fail state or otherwise generate an erroneous setting if performed on an interface connection that has one or more faulty bits. U.S. Patent Application “METHOD AND APPARATUS FOR ELASTIC SHORTS TESTING, A HARDWARE-ASSISTED WIRE TEST MECHANISM”, publication No. US2002/0078402A1, describes a wire test mechanism and U.S. patent application “DATA PROCESSING SYSTEM AND METHOD WITH DYNAMIC IDLE FOR TUNABLE INTERFACE CALIBRATION”, Ser. No. 09/946,217 filed Sep. 5, 2001, describes a periodic recalibration of an EI. The above-referenced patent applications are incorporated herein by reference.

[0007] Present-day high-speed interfaces such as the Elastic Interface (EI) of the above-incorporated patent applications typically include error checking and correcting (ECC) circuitry that provide tolerance to at least single-bit errors on the interface by correcting single-bit errors on-the-fly. A tradeoff between the number of bits required to detect and correct errors versus the data width typically renders a choice for interface hardware connections of double-bit detection and single-bit correction, but “deeper” ECC may also be employed at the expense of additional interface bit width. Such ECC circuitry is used to correct transient errors on an interface, but will also provide proper interface operation for a failure of a number of interface connections that is less than or equal to the ECC depth, if the failure(s) occur(s) subsequent to initialization of the interface, and if dynamic recalibration is not employed.

[0008] It is therefore desirable to provide a method and apparatus for surviving interface failures that takes advantage of correction of correctable errors. It is further desirable to provide a method and apparatus for surviving interface failures that occur prior to and subsequent to interface initialization.

SUMMARY OF THE INVENTION

[0009] The above-mentioned objective of surviving interface failures occurring prior to and subsequent to initialization that takes advantage of correction of correctable errors is provided in an interface method and apparatus.

[0010] The method and apparatus perform DC and/or AC wire testing on an interface having error checking and correction (ECC), and determine a number of interface bit failures. If no failures are found, the interface is operated normally, including alignment calibration if the interface so requires. If failures are found, and the number of failures is less than the number of correctable bit errors of the ECC, the interface is operated using the ECC to correct the failed bit(s) and the alignment calibration, if required, can be skipped for the failed bit(s). Finally, if the number of failures is greater than the number of correctable bit errors of the ECC, the interface is disabled.

[0011] The foregoing and other objectives, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiment of the invention, as illustrated in the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives, and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein like reference numerals indicate like components, and:

[0013]FIG. 1 is a block diagram of an interface connecting two processing blocks in a system in accordance with an embodiment of the invention.

[0014]FIG. 2 is a block diagram of a wire test logic block in accordance with an embodiment of the invention.

[0015]FIG. 3 is a block diagram of an interface unit within a processing block in accordance with an embodiment of the invention.

[0016]FIG. 4 is a flowchart showing a method in accordance with an embodiment of the present invention.

DESCRIPTION OF ILLUSTRATIVE EMBODIMENT

[0017] With reference now to the figures, and in particular with reference to FIG. 1, an interface is depicted between two processors 10A and 10B. While processors 10A and 10B are used to illustrate and support the data connection of two units, the techniques of the present invention extend to address, control and other signal types, as well as connection of memories, peripherals and other functional units within a computer system or other electronic device. The interface between processors 10A and 10B is made by a physical connection of output signals 11A from processor 10A to inputs of processor 10B and output signals 11B from processor 10B to inputs of processor 10A, however the techniques of the present invention extend to non-physically connected (wireless) interfaces and to bi-directional interfaces, as well.

[0018] Within processors 10A and 10B, input signals are received by elastic interface (EI) units 12A and 12B, features of which are described in detail in the above-incorporated patents and patent applications. Output drivers 13 are preferably provided on-chip (but could be located off-chip) and receive ECC encoded data from ECC encode units 18A and 18B that provide the proper correctable bit patterns for transmission between processors 10A and 10B over interface connections 11A and 11B.

[0019] Signals on interface connections 11B and 11A are received by EI units 12A and 12B respectively and the output of EI units 12A and 12B are then provided to error checking and correction (ECC) decode units 16A and 16B that are capable of detecting 2-bit errors and correcting single bit errors. The Single Error Correct/Double Error Detect (SEC/DED) coding is selected for economy of bits (9 extra bits are required for a 64-bit interface), but the techniques of the present invention may be extended to any ECC depth. The present invention uses ECC decode units 16A and 16B to not only correct dynamic bit errors as ECC units are typically employed to correct, but to maintain interface operation when a bit has completely failed or has always been defective.

[0020] It is not desirable to permanently operate an interface in such a degraded condition because the interface will be unable to correct additional single bit “soft” errors occurring on the remainder of the interface if all of the ECC depth is used to correct hard-failed bits. However, since the initial yield for integrated circuits and test boards used during the design evaluation phase traditionally is limited due to interface connectivity flaws, the ability to operate despite such flaws provides significant value for little added logic cost. Further, the ability to survive even a single bit hard-failure in a production unit means that downtime can be almost completely eliminated for a single wire/driver failure, as a unit can continue operating while requesting service/replacement.

[0021] Wire test logic blocks 14A and 14B coordinate detection of shorts and opens on connections between drivers 13 and the inputs of EI units 12A and 12B, by walking a logical 1 and/or a logical 0 across driver 13 outputs and looking for the proper single 1 or 0 at the inputs of EI units 12A and 12B. The above-described test is referred to as a “DC wire test” since the walking bit patterns are not generated at the full interface speed. Wire test logic blocks 14A and 14B also perform AC wire testing using pseudo-random pattern generation and reception. JTAG Interfaces 15A and 15B provide a mechanism for controlling and checking the results of the tests performed by wire test logic blocks 14A and 14B, as well as other control, maintenance and test functions within processors 10A and 10B. JTAG Interfaces 15A and 15B are each coupled to a service processor 19A and 19B (which may be alternatively the same shared service processor) for controlling test operations such as the DC and AC wire tests described above.

[0022] EI units 12A and 12B include delay lines and control logic to support an interface that is aligned at initialization via an Interface Alignment Procedure (IAP) that tunes the input delay of EI units 12A and 12B to achieve the best attainable position (delay) of the input signals with respect to the clock used to latch or sample the input values. The interface may also be periodically recalibrated so that optimal operation of EI units 12A and 12B is maintained. The delay lines used to implement EI units 12A and 12B are sensitive to both supply voltage and temperature, so periodic recalibration provides for operation of the interface at higher frequencies and/or lower error rates than could otherwise be attained without recalibration.

[0023] The combination of the above-described wire tests and interface alignment procedure is performed at each interface initialization. In prior interface implementations, a failure at any point generates a hard error that will take the interface off-line. The initialization performs (in order): DC wire test, EI alignment (IAP) and AC (pattern) tests. The EI alignment is necessary for performing the AC tests, as the interface must be aligned before reliably transferring data. After initialization, periodic recalibration only is performed, and the recalibration is not as extensive as the initialization EI alignment procedure. Similarly, the presence of a fault on the interface will cause recalibration circuitry to fail and a resultant system outage will occur.

[0024] In the interface of the present invention, correctable failure of the above-listed tests and procedures lead to bypassing or otherwise circumventing the results of the above-listed tests and procedures in order to operate the interface with a number of faulty bits less than or equal to the number of ECC-correctable bits in the interface. The above-listed tests and procedures also yield information about how many and which bits (if any) have failed and provide signals that are used to bypass further tests and calibration for the faulty bit(s).

[0025] Referring now to FIG. 2, details of wire test logic 14A (and similarly 14B) are shown. A shift register 22, also configurable as a pseudo-random pattern generator (PRPG), is coupled to the interface input latches of wire test logic 14A and may actually be incorporated in the input latch stage. When shift register 22 is in the shift register mode as directed by JTAG interface 15A in response to a command from service processor 19A, the above-described walking 1's and 0's test (EST or DC test) is performed to detect shorts, opens, driver failures, input latch failures, and other interface failures that yield “stuck” or inconsistent values. The output drivers of the opposing side of the interface, supply the test patterns for the DC test, which are generated by a pseudo-random pattern generator having the same pattern generation logic as shift register 22 when shift register 22 is in PRPG mode. A logical XOR section 24 forming a word comparator, detects differences between the shifted single-bit pattern for the DC tests or pseudo-randomly generated pattern for the AC tests, and a set of individual bit-failure latches 26 provide the result of each test, but disable individual bits in XOR gate 24 for the AC test if the associated bit-failure latch 26 bit is already set from the DC test. The above-described action prevents logical OR gate 28 from setting a global failure latch 29. The output of global failure latch 29 is provided to JTAG interface 15A as well as the output of bit-failure latches 26, so that an external service processor can determine if only a single bit has failed (or a number of bits less than the ECC depth for correctable depths greater than one) and not shut down the interface for the ECC correctable failure conditions.

[0026] Bit failure latch 26 outputs are provided also to elastic interface unit 12A, for bypassing alignment and recalibration for failed bits that are correctable by ECC 16A. Service processor 19A determines whether or not the number of failed bits exceeds the correctable bit limit, and generates either a high-level hard error that will disable the interface (and generally the system or portion of the system that is affected by the interface), or a lower-level error that indicates that repair or replacement of the failed interface component is required. Alternatively, specialized circuits can be designed into the component to automatically determine whether or not the fault will be survivable and to report interface status to the service processor accordingly.

[0027] Referring now to FIG. 3, details of elastic interface unit 12A (and similarly elastic interface unit 12B) are depicted. A set of individual bit delay lines 40 provides for de-skew of data arriving at the inputs of elastic interface unit 12A, by adding delays to all bits other than the latest arriving bit signal(s). De-skew is performed only at initialization alignment (IAP) under the control of elastic interface control logic 46. De-skew is bypassed for any failed bits that are indicated by the signals provided from bit fail latch 26, which at initialization will only be bits that have failed the DC test. However, other embodiments of the invention may perform de-skew operations at subsequent intervals, in which case AC test failed bits would also be disabled in the de-skew operation.

[0028] After de-skew at initialization and also during periodic recalibration, elastic interface control 46 selects a clock delay for clock delay line 44 that centers a latch enable provided to bit latches 45 in the center of the eye diagram for the data. Iterative techniques are used by elastic interface control 46, which contains edge detectors and guard-band logic for determining optimal clock position with respect to the de-skewed data output of delay lines 40. Elastic interface control 46 tests both edges of the data window for all bits, detecting the first edges of the earliest bit and the last edges of the latest bit and then centers the clock position in the middle of the composite data window by adjusting clock delay line 44. When looking for edges, bits set in bit fail latches 26 cause elastic interface control 46 to force “good” states for failed bits (i.e., the failed bits are never detected as the first or last edges of the composite data window and thus will not cause a change in the setting of clock delay line 44).

[0029] A multiplexer 41 coupled to the provided output data is used to select between system or “mission” output data and sync/AC wiretest/recalibration patterns generated by sync/PRPG generator 42 for performing IAP/AC wiretest/recalibration in the remotely connected elastic interface unit 12B (and similarly, the patterns for performing the above-described tests on elastic interface unit 12A receiver circuits are provided by identical or similar output pattern generation circuits within elastic interface unit 12B). The output signals from multiplexer 41 are provided to drivers 13 for output on the interface wires. After IAP has been performed using the sync pattern mode of sync/PRPG generator 42, the AC tests provided by a pattern generation mode of sync/PRPG generator 42 that matches the pseudo-random pattern generation mode of wire test logic 14A are performed. During periodic recalibration, another PRPG pattern is used that provides a more precise alignment than the sync pattern mode of sync/PRPG generator 42 that generates random patterns simulating actual data transfer. A recalibration is generally forced before actively using the elastic interface, in order to perform more optimal alignment of clock delay line 44.

[0030] Additionally, in accordance with alternative embodiments of the present invention, the outputs of EST fail latches 26 can be evaluated after both AC and DC testing, to determine whether new failures have occurred during AC testing that can be subsequently corrected by ECC (i.e., the first bit failure occurs at AC testing or new failed bit(s) are detected that increase the needed ECC depth for surviving an interface failure).

[0031] Also, the failure of the IAP or periodic recalibration, depending on circuit configuration, may be used as a fail bit detector by adding logic to elastic interface control 46 that determines an inability to adjust the interface delay lines to de-skew an individual bit at IAP (i.e., the bit has too much delay or too little delay with respect to other bits that exceeds the adjustability of delays lines 40). Also the ability at TAP or recalibration to adjust clock delay line 44 to compensate for one or more bits less than the ECC depth in the composite data window adjustment may be used to indicate a failure. If the above-described facility is implemented for recalibration, then interface bit failures at run-time may also be detected and signaled as faults. The TAP and recalibration can be repeated at idle in response to detection of a run-time failure of a correctable number of bit failures, bypassing the failed bit(s) so that the interface is properly aligned (including de-skew) without the failed bit(s).

[0032] Referring now to FIG. 4, a method in accordance with an embodiment of the present invention is depicted in a flowchart. For illustrative purposes, the flowchart depicts operation of a system that can detect double-bit errors and correct single-bit errors. First, at initialization, a DC wire test is performed (step 60). If all of the bits (wires) are good (decision 61), the IAP is performed (step 70) and the interface is operated normally (step 71), presuming that the interface passes AC testing. The interface is also periodically recalibrated during idle intervals (step 72). If a number of bits greater than the ECC depth is found bad (decision 62), the interface is disabled and a non-operating fault is indicated to the supervisory facilities within the system (step 63).

[0033] If a number of bits less than the ECC depth is found bad (step 62), then the IAP is performed, bypassing effects of the bad bits (step 64). The AC test is then performed, also bypassing effects of the bad bit (step 65). If further bits are detected as bad that exceed the ECC depth (decision 66) by the AC tests, the interface is disabled and a non-operating fault is indicated to the supervisory facilities within the system (step 67). Otherwise, the interface is operated relying on ECC to correct the failed bit (step 68). A lower-level hard error is also generated to indicate to the supervisory facilities that repair or replacement of an interface component is needed. The interface is also periodically recalibrated during idle intervals, but bypassing the effects of the bad bit (step 69).

[0034] While the invention has been particularly shown and described with reference to the preferred embodiment thereof, it will be understood by those skilled in the art that the foregoing and other changes in form, and details may be made therein without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A method of operating an interface coupling a first subsystem and a second subsystem and including error checking and correction (ECC), said method comprising: initializing said interface including performing one or more tests for verifying a proper operation of a plurality of bits of said interface; in response to a result of said one or more tests, determining whether or not one or more of said bits are faulty and if a number of said faulty bits is less than or equal to a correctable bit depth of said ECC; and in response to determining that a number of said faulty bits is less than or equal to said correctable bit depth, operating said interface, whereby said ECC corrects errors due to said one or more faulty bits.
 2. The method of claim 1, wherein said one or more tests includes a static bit value (DC) test and wherein said determining is made by detecting whether or not said one or more bits do not match one or more static values set in said static bit value (DC) test.
 3. The method of claim 2, wherein said one or more tests further includes a bit pattern (AC) test and further comprising in response to determining that one or more particular bits are faulty, bypassing said bit pattern (AC) test for said particular bits.
 4. The method of claim 1, further comprising performing an alignment procedure on said interface to optimize operation of said interface, and wherein said alignment procedure is performed selectively only on bits determined to be not faulty.
 5. The method of claim 1, wherein said one or more tests includes a bit pattern (AC) test and wherein said determining is made by detecting whether or not said one or more bits do not follow a test pattern sent in said bit pattern (AC) test.
 6. The method of claim 1, wherein said one or more tests includes a verification of calibration during an interface alignment procedure and wherein said determining is made by detecting whether or not said one or more bits can be aligned.
 7. The method of claim 1, further comprising subsequent to said operating, recalibrating said interface to align only bits determined to be not faulty.
 8. The method of claim 1, further comprising: subsequent to said operating, recalibrating said interface; and verifying that one or more of said bits cannot be aligned and if a number of said non-alignable bits is less than or equal to a correctable bit depth of said ECC; and in response to determining that a number of said non-alignable bits is less than or equal to said correctable bit depth, operating said interface normally, whereby said ECC corrects errors due to said one or more non-alignable bits.
 9. An interface for connecting a first subsystem and a second subsystem, said interface comprising: an ECC decoder for detecting and correcting a number of errors appearing one or more bits of said interface; testing logic for performing one or more tests for verifying a proper operation of a plurality of bits of said interface; and control logic coupled to said testing logic for receiving an indication from said testing logic indicating whether or not one or more of said plurality of bits are faulty, wherein said control logic in response to said indication determines whether a number of said faulty bits is less than or equal to a correctable bit depth of said ECC and in response to determining that said number of faulty bits is less than or equal to said correctable bit depth, enables said interface to operate, whereby said ECC decoder corrects errors due to said one or more faulty bits.
 10. The interface of claim 9, wherein said one or more tests includes a static bit value (DC) test, and wherein said testing logic determines whether or not said one or more bits is faulty by detecting that said one or more bits do not match one or more static values set in said static bit value (DC) test.
 11. The interface of claim 10, wherein said one or more tests further includes a bit pattern (AC) test, and wherein said testing logic bypasses AC testing of said one or more faulty bits in response to said control logic determining that said one or more bits are faulty.
 12. The interface of claim 9, further comprising: a plurality of delay lines for delaying said plurality of bits to align the arrival of bit values with a sampling clock; and alignment logic for adjusting said delay lines, and wherein said control logic is coupled to said alignment logic for bypassing a contribution of said one or more faulty bits to said adjusting.
 13. The interface of claim 9, wherein said one or more tests includes a bit pattern (AC) test and wherein said testing logic indicates whether or not said one or more bits do not follow a test pattern sent in said bit pattern (AC) test.
 14. The interface of claim 9, wherein said one or more tests includes a verification of calibration during an interface alignment procedure and wherein said testing logic indicates whether or not said one or more bits could not be aligned.
 15. The interface of claim 9, further comprising: a plurality of delay lines for delaying said plurality of bits to align the arrival of bit values with a sampling clock; and alignment logic for periodically recalibrating said delay lines during interface idle periods, and wherein said control logic is coupled to said alignment logic for bypassing a contribution of said one or more faulty bits to said recalibrating.
 16. The interface of claim 9, further comprising: a plurality of delay lines for delaying said plurality of bits to align the arrival of bit values with a sampling clock; and alignment logic for periodically recalibrating said delay lines during interface idle periods, and wherein said alignment logic provides an alignment indication to said control logic indicating whether or not one or more of said bits cannot be aligned, wherein said control logic determines whether or not a number of said non-alignable bits is less than or equal to a correctable bit depth of said ECC, and in response to determining that a number of said non-alignable bits is less than or equal to said correctable bit depth, said control logic signals said alignment logic to bypass a contribution of said one or more non-alignable bits and to repeat said recalibrating.
 17. The interface of claim 16, wherein said control logic further signals said alignment logic to perform a full interface alignment.
 18. The interface of claim 9, wherein said first subsystem and said second subsystem are coupled to one or more service processors via one or more test ports, and wherein said control logic is coupled to said one or more test ports for providing said indication from said testing logic to said one or more service processors and wherein said one or more services processors determine whether or not a number of said faulty bits is less than or equal to a correctable bit depth of said ECC and in response to determining that said number of faulty bits is less than or equal to said correctable bit depth, said one or more service processors enable said interface to operate.
 19. An interface, comprising: an ECC decoder for detecting and correcting a number of errors appearing one or more bits of said interface; a plurality of delay lines for delaying a plurality of bits to align the arrival of bit values of said interface with a sampling clock; testing logic for performing one or more tests for verifying a proper operation of a plurality of bits of said interface; alignment logic for adjusting said delay lines at initialization of the interface; and control logic coupled to said testing logic for receiving an indication from said testing logic indicating whether or not one or more of said plurality of bits are faulty, wherein said control logic in response to said indication determines whether a number of said faulty bits is less than or equal to a correctable bit depth of said ECC and in response to determining that said number of faulty bits is less than or equal to said correctable bit depth, enables said interface to operate, whereby said ECC decoder corrects errors due to said one or more faulty bits, and wherein said control logic is coupled to said alignment logic for bypassing a contribution of said one or more faulty bits to said adjusting.
 20. The interface of claim 19, wherein said alignment logic further periodically recalibrates said delay lines during interface idle periods, and wherein said control logic further indicates to said alignment logic to bypassing a contribution of said one or more faulty bits to said recalibrating. 